package t4tools.splittingObjects.test.order;

import java.util.Map;

import t4tools.splittingObjects.model.Cell;
import t4tools.splittingObjects.util.Relation;

public class GreenColorRelation implements Relation {

	public boolean relates(Cell cell, Map<String, Cell> related) {
		if (cell != null && related != null && related.size() == 1) {
			return "green".equals(related.values().iterator().next().getStringValue());
		}
		return false;
	}

}
